# Maintainer: Robin Candau <antiz@archlinux.org>
# Contributor: Aleksana QWQ <me@aleksana.moe>

pkgname=hyfetch
pkgver=1.4.8
pkgrel=2
pkgdesc="Neofetch with LGBTQ+ pride flags!"
arch=('any')
url='https://github.com/hykilpikonna/hyfetch'
license=('MIT')
depends=('python>=3.7.0' 'python-setuptools' 'python-typing_extensions' 'python-importlib-metadata')
source=("${pkgname}-${pkgver}.tar.gz::${url}/archive/${pkgver}.tar.gz")
sha256sums=('d2753230cd2ce1591a14757cbd816cf4823911042534f8bbccd4ae80a1e81f91')

build() {
	cd "${pkgname}-${pkgver}"
  	python setup.py build
}

package() {
	cd "${pkgname}-${pkgver}"
  	python setup.py install --root="${pkgdir}" --optimize=1 --skip-build 

	install -Dm 644 README.md "${pkgdir}/usr/share/doc/${pkgname}/README.md"
	install -Dm 644 LICENSE.md "${pkgdir}/usr/share/licenses/${pkgname}/LICENSE"
}
